/**
 * 二级页
 */

// ***************	二级页面之 新闻动态 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/xwdt/'){

	//轮播前的标签
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_preLink = $('.left_b_box a:first');

	//文字A标签
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title = $('#D1pic1 .fcon:eq(0) span a:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title = $('#D1pic1 .fcon:eq(1) span a:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title = $('#D1pic1 .fcon:eq(2) span a:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title = $('#D1pic1 .fcon:eq(3) span a:first');

	//原点
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_point = $('#D1fBt a:eq(0) i:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_point = $('#D1fBt a:eq(1) i:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_point = $('#D1fBt a:eq(2) i:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_point = $('#D1fBt a:eq(3) i:first');

	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_afterLink = $(".xwdt_list_img a:first");

	//轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_preLink.focus(function (e) {
		$(this).bind("keydown.keydown_xwdt_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_preLink.blur(function () {
		$(this).unbind("keydown.keydown_xwdt_0");
	});

	//轮播图 第一块
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title.focus(function (e) {
		$(this).bind("keydown.keydown_xwdt_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title.blur(function () {
		$(this).unbind("keydown.keydown_xwdt_1");
	});

	//轮播图 第二块
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title.focus(function (e) {
		$(this).bind("keydown.keydown_xwdt_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title.blur(function () {
		$(this).unbind("keydown.keydown_xwdt_2");
	});

	//轮播图 第三块
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title.focus(function (e) {
		$(this).bind("keydown.keydown_xwdt_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title.blur(function () {
		$(this).unbind("keydown.keydown_xwdt_3");
	});

	//轮播图 第四块
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title.focus(function (e) {
		$(this).bind("keydown.keydown_xwdt_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_afterLink.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title.blur(function () {
		$(this).unbind("keydown.keydown_xwdt_4");
	});
}
// ***************	二级页面之 新闻动态 end	***************	//
